package com.yjt.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yjt.common.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author zzp
 * @since 2021-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("b_org")
@ApiModel(value = "Org对象", description = "组织表")
public class Org extends CommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "组织id")
    @TableId(value = "org_id", type = IdType.ASSIGN_ID)
    private String orgId;

    @ApiModelProperty(value = "组织名称拼音")
    private String orgNamePy;

    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @ApiModelProperty(value = "组织类型(1集团2公司3部门)")
    private Integer orgType;

    @ApiModelProperty(value = "上级组织id")
    private String superOrgId;

    @ApiModelProperty(value = "上级所有组织id")
    private String superAllOrgId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "公司logo")
    private String orgLogo;

    @ApiModelProperty(value = "主题")
    private String subjeId;


}
